Skip to content

Instantly share code, notes, and snippets.

@pipethedev
pipethedev / go-deslop.md
Created September 7, 2026 13:10
Markdown file to de-slop your go codebase

Go Codebase Cleanup: Remove Defensive Over-Engineering and AI Slop

Audit this Go codebase and aggressively simplify AI-generated, defensive, overly abstract, or unnecessarily generic code.

The goal is to make the code look like it was written by an experienced Go engineer:

  • simple
  • explicit
  • strongly typed
  • boring
@alisson-anjos
alisson-anjos / 01-lora-layer-surgery-guide.md
Last active October 19, 2026 10:49
Diagnosing a LoRA by cutting it apart — finding which modules cause a defect (blur, lost identity, ignored pose) and fixing it without retraining

Diagnosing a LoRA by cutting it apart

A practical guide to finding which modules of a trained LoRA cause a specific defect (blurry skin, lost identity, ignored pose) and to fixing it without retraining.

Everything here is post-hoc weight surgery: you take a .safetensors you already trained, produce variants with some module groups zeroed or scaled, generate with each under a fixed seed, and measure. No GPU training, minutes per iteration.

Worked examples at the end come from two real LoRAs on Qwen-Image-2.1 (a head swap and a

@minism
minism / color.py
Created January 10, 2012 18:39
python terminal colors
# Terminal color definitions
class fg:
BLACK = '\033[30m'
RED = '\033[31m'
GREEN = '\033[32m'
YELLOW = '\033[33m'
BLUE = '\033[34m'
MAGENTA = '\033[35m'
CYAN = '\033[36m'
@dahaha-365
dahaha-365 / lazy_script.js
Last active October 19, 2026 10:37
Clash Verge Rev 全局扩展脚本(懒人脚本配置)
/***
* Clash Verge Rev 全局扩展脚本(懒人配置)/ Mihomo Party 覆写脚本
* URL: https://gist.github.com/dahaha-365/0b8beb613f8d1ee656fe1f21e1a07959
*/
/**
* 整个脚本的总开关,在Mihomo Party使用的话,请保持为true
* true = 启用
* false = 禁用
*/
@AlphaMvge
AlphaMvge / CleanUp.bat
Created July 28, 2025 10:43
Full Windows cleanup & repair script (BAT)
@echo off
chcp 65001 >nul
echo Forcefully terminating Windows Explorer...
rem Closes Windows Explorer to prevent interference
taskkill /f /im explorer.exe
echo Deleting all thumbnail cache files...
rem Removes cached thumbnail images to free up space
del /f /s /q /a %LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// ==UserScript==
// @name Codechef IO Copy
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author nikhilksingh97
// @match https://www.codechef.com/problems/*
// @grant none
// ==/UserScript==
@jam1garner
jam1garner / switch-gdb-cheatsheet.md
Last active October 19, 2026 10:24
GDB for Switch Modding Cheatsheet/Tutorial

This is a mini-tutorial of sorts for getting started with gdb on the Switch, with the target audience being people who want to mod and/or reverse games, with no prerequisite knowledge of gdb. The goal will be to walk you through some of the basic workflows needed to use a debugger on the Switch, while being brief enough for skimming for when you forget things.

If some part is unclear, your OS doesn't have install instructions, or you feel part of your workflow should be added here, feel free to comment any additions.

(If you only need a quick reference Jump to the Appendix)

Installing GDB

First off you'll need a version of GDB compatible with aarch64. This can be obtained via either a distribution of

@KhaosT
KhaosT / Cloud Gaming on Apple Vision Pro.md
Last active October 19, 2026 10:18
Guide for clouding gaming on Apple Vision Pro

Cloud Gaming on Apple Vision Pro

GeForce Now

Cloud Gaming is a great way to enjoy graphically demanding games on Apple Vision Pro.

Since Safari on visionOS does not support PWA mode, here is how you can access cloud gaming services on Apple Vision Pro.

What’s needed